package com.yudaxian.sys.service.impl;

import com.yudaxian.sys.entity.Logs;
import com.yudaxian.sys.entity.Logs;
import com.yudaxian.sys.mapper.LogsMapper;
import com.yudaxian.sys.service.ILogsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统日志 服务实现类
 * </p>
 *
 * @author yudaxian
 * @since 2023-12-05
 */
@Service
public class LogsServiceImpl extends ServiceImpl<LogsMapper, Logs> implements ILogsService {


    @Override
    public Logs getLogsById(Integer id) {
        return this.baseMapper.selectById(id);
    }

    @Override
    public void addLogs(Logs logs) {
        this.baseMapper.insert(logs);
    }

    @Override
    public void updateLogs(Logs logs) {
        this.baseMapper.updateById(logs);
    }

    @Override
    public void deleteLogsById(Integer id) {
        this.baseMapper.deleteById(id);
    }

}
